<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>明人教育后台管理</title>
<link rel="shortcut icon" id="icon-fav" type="image/x-icon" href="/mrjy/common/images/mrjy_fav.ico" >
<link rel="Bookmark" id="book-mark" href="/mrjy/common/images/mrjy_fav.ico"/>
<link href="/mrjy/common/jquery-easyui/css/default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/mrjy/common/jquery-easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/mrjy/common/jquery-easyui/themes/icon.css">
<link href="/mrjy/common/css/mrjy.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/mrjy/common/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/mrjy/common/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/mrjy/common/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/mrjy/common/jquery-easyui/js/XiuCai.index.js"></script>
<script type="text/javascript" src="/mrjy/common/js/jquery.timers-1.2.js"></script>
<script type="text/javascript" src="/mrjy/common/js/mrjy.js" charset="UTF-8"></script>
<script type="text/javascript" src="/mrjy/common/js/mrjy.url.js"></script>
<script type="text/javascript">
	var _menus;
	$.get(getTimeURL("menuInfo/roleMenu.do"),function(data){
			_menus =data;
			InitLeftMenu();	 			
	},"json");
	
	$(function(){
		sessionName();
	});
	
	

    function logout(){
    	$.messager.confirm('退出', '您确定要退出云平台?', function(r) {
            if (r) {
            	$.get(getTimeURL("/mrjy/common/util/logout.do"),function(data){                		
					if(data=="ok"){
						//window.location = mrjyHtml5Url + "index.html";
						window.location = "/pcWeb/pcWeb_index.html" ;
					}
				});
            }
        });
	}
   function sessionName(){
	   $.ajax({
 			type:"post",
 			url:"/mrjy/maintain/userInfo/sessionUserInfo.do",
 			dataType:"json",
 			success:function(data){
 				if(data=="error"){
 					//window.location = mrjyHtml5Url + "index.html";
 					window.location = "/pcWeb/pcWeb_index.html" ;
 				}else{
 					//hostStr = data.schoolCode.split(".")[0];
 					//var bookMark = document.getElementById('book-mark');
					//var iconFav = document.getElementById('icon-fav');
					//bookMark.href = mrjyFile +'maintain/schoolpic/'+data.schoolIcon;
					//iconFav.href = mrjyFile +'maintain/schoolpic/'+data.schoolIcon;
 					//$("#schoolLogo").attr("src",mrjyFile + "maintain/schoolpic/"+data.logoSm);
 					//$("#schoolName").html(data.schoolNamejc +"教育云平台"); 
 					$("#userName").html(data.userName+" 欢迎你！");
 					//添加登录用户的信息
 					sessionStorage.setItem('userInfoBack', JSON.stringify(data));
 					document.title="后台管理";
 				} 
 			}
  	   });
  	     var serverTime;
     		$.get(getTimeURL("/mrjy/common/util/serverTime.do"),function(data){
     			serverTime = parseInt(data);
     			var date = new Date(serverTime);
				$("#timer_span").html(date.toLocaleString());
     		},"json");
    	 	$('body').everyTime('1s',function(){
				serverTime+=1000;		
				var date = new Date(serverTime);
				$("#timer_span").html(date.toLocaleString());
			});
   }
   
   function openServices(){
	   if($("#side").css("display")=="none"){
		   $("#side").css("display","block");
	   }else{
		   $("#side").css("display","none");
	   }
   }
    </script>
</head>
<body class="easyui-layout" style="overflow-y:hidden" fit="true" scroll="no" >
    <div region="north" split="true" style="overflow:hidden;height:38px;background: url(/mrjy/common/jquery-easyui/images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;line-height:30px;">
       	<div style="position:absolute;top:3px;right:10px;" class="mrjy_ft_2"><span id="timer_span" style="margin-right:20px" class="mrjy_ft_2"></span><span id="userName" style="margin:0px 20px 0px 3px" class="mrjy_ft_2"></span><a href="javascript:logout()" class="mrjy_lk_1"><img src="/mrjy/common/images/exit.png" style="vertical-align:middle;width:18px;height:18px"/>退出</a></div>
      	<span style="padding-left:10px;letter-spacing:3px" class="mrjy_ft_1"><img src="/mrjy/common/images/mrjy_logo.png" width="30" height="30" style="vertical-align:middle;"/> 明人教育科技云平台</span>
    </div>
    <div region="west" split="true"  title="后台数据中心" style="width:180px;" id="west">
			<div id="nav">
			</div>
    </div>
    <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
        <div id="tabs" class="easyui-tabs"  fit="true" border="false" >
			<div title="首页" style="padding:20px;overflow:hidden; color:red; " >
				
			</div>
		</div>
    </div>
	<div id="mm" class="easyui-menu" style="width:150px;">
		<div id="tabupdate">刷新</div>
		<div class="menu-sep"></div>
		<div id="close">关闭</div>
		<div id="closeall">全部关闭</div>
		<div id="closeother">除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="closeright">当前页右侧全部关闭</div>
		<div id="closeleft">当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
		<div id="exit">退出</div>
	</div>
</body>
</html>